package com.yiyiooo.Abp.basics;

import android.util.Log;
import android.widget.Toast;

import com.yiyiooo.Abp.AppBootstrap;

public class AppMessage {
    static public void Info(String message,String title){
        Log.i("AppMessage",title+" "+message);
    }
    static public void Warn(String message,String title){
        Log.w("AppMessage",title+" "+message);
        Toast.makeText(AppBootstrap.getAppContext(), message, Toast.LENGTH_SHORT).show();
    }
    static public void Err(String message,String title){
        AbpLog.e("AppMessage",title+" "+message);
        Toast.makeText(AppBootstrap.getAppContext(), message, Toast.LENGTH_SHORT).show();
    }
    static public void Debug(String message,String title){
        Log.d("AppMessage",title+" "+message);
    }
    static public void Success(String message,String title){
        Log.d("AppMessage",title+" "+message);
        Toast.makeText(AppBootstrap.getAppContext(), message, Toast.LENGTH_SHORT).show();
    }
    static public void Info(String message){
        Info(message, "info");
    }
    static public void Warn(String message){
        Warn(message,"Warn");
    }
    static public void Err(String message){
        Err(message,"Err");
    }
    static public void Debug(String message){
        Debug(message,"Debug");
    }
    static public void Success(String message){
        Success(message,"Success");
    }
}
